-
Notifications
You must be signed in to change notification settings - Fork 679
Port over some baselined hover/quick info tests #1476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ports over fourslash tests for hover/quick info functionality from the original TypeScript test suite. The tests validate hover information displayed when users hover over various language constructs including classes, enums, functions, interfaces, modules, and variables.
Key Changes
- Ported baseline test files that establish expected hover output for different TypeScript language features
- Tests cover a comprehensive range of hover scenarios: class members, function overloads, enum members, module aliases, and variable declarations
- Added JSON output format that captures both the hover content and position information for each test marker
Also, I think these baselines are going in different directories than before - I hope that's fine? |
result = strings.Split(*item.Contents.String, "\n") | ||
} | ||
if item.Contents.MarkedStringWithLanguage != nil { | ||
result = appendLinesForMarkedStringWithLanguage(result, item.Contents.MarkedStringWithLanguage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need this, I think this has been deprecated, but I guess it's fine to have it.
This change ports over fourslash tests for quick info.
Things are definitely not apples-to-apples given that hovers don't use display parts like quick info did. I did not do a very thorough diff, but some notable differences I picked up on:
@see
/@link
doesn't process text the same.@inheritdoc
doesn't workthis
,class
, anddefault
(like anexport default
) are both not workingThere are only a few new failing tests, that I believe fail with something like the following: